package com.woniuxy.oop;

/**
 * description: TestString <br>
 * date: 2022/2/1 3:24 下午 <br>
 * author: shesaifei <br>
 * version: 1.0 <br>
 */
public class TestString {
    public static void main(String[] args) {
        String str = "abc";
        String str2 = new String("def");
        String str3 = "abc" + "defg";
        String str4 = "非给" + 18;
        System.out.println(str4);
        System.out.println("####$#####");

        String str10 = "gaoqi";
        String str11 = "gaoqi";
        String str12 = new String("gaoqi");

        System.out.println(str10 == str11);
        System.out.println(str12 == str11);

        System.out.println("---------");
        System.out.println(str12.equals(str11));
    }
}
